package com.hydl.power.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hydl.power.pojo.CabinetDevice;
import com.hydl.power.pojo.MicrocomputerProtection;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author wxx
 * @since 2021-03-03
 */
public interface MicrocomputerProtectionMapper extends BaseMapper<MicrocomputerProtection> {

    CabinetDevice getCabinetDeviceNumber(String cabinetId, String projectId, String powerRoomId);

    List<MicrocomputerProtection> getDeviceList(String cabinetId);

    void addMicrocomputerProtection(MicrocomputerProtection microcomputerProtection);

    void updateMicrocomputerProtection(Integer id, String name, String manufactor, String serialNumber, String modelNumber, String productionTime, String cabinetId, String projectId, String projectName, String powerRoomId, String powerRoomName);

    void deleteMicrocomputerProtection(Integer id);

    List<CabinetDevice> getDeviceByProjectId(String projectId);
}
